package com.rabbit.eap.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * @projectName eap
 * @packageName com.rabbit.eap.system.entity
 * @className SysUserDept
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/06/06 23:34:04
 * <p>Description:
 * 用户附属机构关系表
 * SysUserDept 实体
 * </p>

 */
@Data
@Accessors(chain = true)
@TableName("sys_user_dept")
@ApiModel(value = "SysUserDept对象")
public class SysUserDept {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    /**
     * 部门id
     */
    @ApiModelProperty("部门id")
    @TableField("dept_id")
    private Long deptId;

    /**
     * 岗位id
     */
    @ApiModelProperty("岗位id")
    @TableField("post_id")
    private Long postId;

    /**
     * 部门名称
     */
    @ApiModelProperty("部门名称")
    @TableField(exist = false)
    private String deptName;

    /**
     * 岗位名称
     */
    @ApiModelProperty("岗位名称")
    @TableField(exist = false)
    private String postName;

}
